<form id="positionForm">
    <input name="id" type="hidden" th:value="${subject?.id}">
    <input name="origin" type="hidden" value="1">
    <div class="form-group row">
        <label for="img" class="col-sm-2 col-form-label">图片:</label>
        <div class="col-sm-10">
            <input type="text" th:value="${subject?.img}" name="img" class="form-control"
                   id="img"
                   placeholder="图片地址" required>
            <div class="invalid-feedback">请输入图片</div>
            <br>
            <a type="button" class="btn btn-sm btn-block btn-info coverUploader">上传</a>
        </div>
    </div>
    <div class="form-group row">
        <label for="url" class="col-sm-2 col-form-label">链接:</label>
        <div class="col-sm-10">
            <input type="text" th:value="${subject?.url}" name="url" class="form-control"
                   id="url"
                   placeholder="填写链接" required>
            <div class="invalid-feedback">请填写链接</div>
        </div>
    </div>
</form>